﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EzDesk.DesktopClient.ViewContract;
using EzDesk.DesktopClient.View;
using Microsoft.Practices.Unity;
using EzDesk.Generic;

namespace EzDesk.DesktopClient
{
    public class IMClientUnityContainerStatic
    {
        public static UnityContainer Container
        {
            get
            {
                return GenericDictionary<UnityContainer>.Instance;
            }
        }

        public static void RegistViews()
        {
            IMClientUnityContainerStatic.Container.RegisterType<IFeedItemView, FeedItemView>();
            IMClientUnityContainerStatic.Container.RegisterType<IFeedView, FeedView>();
            IMClientUnityContainerStatic.Container.RegisterType<IFunctionPageView, FunctionPageView>();
            IMClientUnityContainerStatic.Container.RegisterType<ILoginView, LoginView>();
            IMClientUnityContainerStatic.Container.RegisterType<INotificationView, NotificationView>();
            IMClientUnityContainerStatic.Container.RegisterType<ISelfInfoView, SelfInfoView>();
            IMClientUnityContainerStatic.Container.RegisterType<IShellView, ShellView>();
            IMClientUnityContainerStatic.Container.RegisterType<ITopPanelView, TopPanelView>();
            IMClientUnityContainerStatic.Container.RegisterType<IContentTabView, ContentTabView>();
            IMClientUnityContainerStatic.Container.RegisterType<ITaskItemView, TaskView>();
            IMClientUnityContainerStatic.Container.RegisterType<IAppTaskView, AppTaskView>();
            IMClientUnityContainerStatic.Container.RegisterType<IAppItemView, AppItemView>();
        }
    }
}
